package com.ttbj.util;

import java.lang.annotation.Annotation;

import org.apache.poi.ss.formula.functions.T;

public class AnnotationUtil {

	public static boolean havaAnnotation(Object obj, Class<? extends Annotation>T) {
		if (null == obj ) {
			return false;
		}
		Class<? extends Object> clzz = obj.getClass();
		Annotation[] annotations = clzz.getAnnotations();
		for (int i = 0; i < annotations.length; i++) { // 遍历循环
			 return clzz.isAnnotationPresent(T);
		}
		return false;
	}
	
	

}
